package Classes;

/**
 *
 * @author Juampi
 */
public class Empresa extends Contacto {

    private String razonSocial;
    private String urlWeb;
    private String rubros;

    public Empresa() {
    }

    public String getUrlWeb() {
        if (urlWeb == null) {
            urlWeb = "";
        }
        return urlWeb;
    }

    public String getRubros() {
        if (rubros == null) {
            rubros = "";
        }
        return rubros;
    }

    @Override
    public char getTipo() {
        return Contacto.ES_EMPRESA;
    }

    public String getRazonSocial() {
        if (razonSocial == null) {
            razonSocial = "";
        }
        return razonSocial;
    }

    public void setUrlWeb(String urlWeb) {
        this.urlWeb = urlWeb;
        this.setChanged();
        this.notifyObservers(this);
    }

    public void setRubros(String rubros) {
        this.rubros = rubros;
        this.setChanged();
        this.notifyObservers(this);
    }

    public void setRazonSocial(String razonSocial) {
        this.razonSocial = razonSocial;
        this.setChanged();
        this.notifyObservers(this);
    }

    @Override
    public String getStringComparable() {
        return this.getRazonSocial();
    }
}
